$letter = $null;
if(test-path '<%= @xmlpath %>'){
[xml]$xml = New-Object system.Xml.XmlDocument;[xml]$xml = Get-Content '<%= @xmlpath %>';
foreach($iso in $xml.configuration.isos.iso){if($iso.ImagePath -eq '<%= @isopath %>'){$letter = $iso.DriveLetter;}}
if($letter -ne $null){Push-Location;cd $letter':' ;
.\setup.exe /CONFIGURATIONFILE='<%= @configurationfile %>';
Pop-Location;}}{exit 0}